package com.leon.spring_security_oauth2.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.leon.spring_security_oauth2.entity.SysUser;
import com.leon.spring_security_oauth2.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {
    /**
     * 通过用户名查询用户信息（含有角色信息）
     *
     * @param username 用户名
     * @return userVo
     */
    UserVO selectUserVoByUsername(String username);

}